interface ClaimCouponAPIResData {
  code: number
  msg: string
  time: string
  data: null
}

interface ClaimCouponAPIData {
  id: string
}

export function claimCouponAPI(data: ClaimCouponAPIData, token: string) {
  return httpInstance.post<ClaimCouponAPIResData, ClaimCouponAPIData>(
    '/api/coupon/add',
    data,
    { headers: { token } },
  )
}
